#include <iostream>
using std::cout;
using std::endl;
//派生类如果没有显示调用基类的构造函数，那么会调用无参构造
class Base{
public:
    Base(){
        cout << "Base()" << endl;
    }

};
class Derived : public Base{
public:
    Derived(){
        cout << "Derived()" << endl;
    }
};


void test(){
    Derived d;

}

int main()
{
    test();
    return 0;
}

